package com.sz.designpattern.create5.singleton.init_jvm;

public enum EnumSingleton2 {
    INSTANCE;

    private Resource instance;

    EnumSingleton2(){
        instance = new Resource();
    }

    public Resource getInstance(){
        return instance;
    }

    public static class Resource{
        private Resource() {
        }
    }

}
